//
//  XLConversationInputToolbar.h
//  XLConversationInputView
//
//  Created by ilongge on 2022/8/3.
//

@class XLCvstInputMoreItemModel;

#import <UIKit/UIKit.h>


@interface XLConversationInputToolbar : UIView

@property (nonatomic, strong) UIButton *voiceIconButton;
@property (nonatomic, strong) UIView *messageTextBackgorundView;
@property (nonatomic, strong) UITextView *messageTextView;
@property (nonatomic, strong) UIButton *recordAudioButton;
@property (nonatomic, strong) UIButton *emojiIconButton;
@property (nonatomic, strong) UIButton *addMoreItemButton;
@property (nonatomic, strong) UIButton *sendMessageButton;
@property (nonatomic,   copy) NSString *messsageTextTempString;
@property (nonatomic, assign) CGFloat sendButtonWidth;
@property (nonatomic, assign) CGFloat messageTextBackgorundViewHeight;
@property (nonatomic, assign) NSInteger maxMessageTextLength;

@property (nonatomic, copy) void(^messageTextHeightChangedBlock)(CGFloat height);
@property (nonatomic, copy) void(^addMoreItemActionBlock)(BOOL isSelected);
@property (nonatomic, copy) void(^voiceIconButtonBlock)(BOOL isSelected);
@property (nonatomic, copy) void(^sendMessageBlock)(XLCvstInputMoreItemModel *item, NSString *message);
@property (nonatomic, copy) void(^layoutSubviewsBlock)(void);
@property (nonatomic, copy) BOOL(^atSomeoneBlock)(XLCvstInputMoreItemModel *item, NSString *name);
/// 切换到语音
- (void)voiceIconButtonAction:(UIButton *)sender;
- (void)addMoreItemButtonAction:(UIButton *)sender;
- (void)textViewTextDidChange;
@end


